{template 'common/header'}
<script language="JavaScript" src="{MODULE_URL}template/public/js/delete.js"></script>
<!--搜索开始-->
<div class="panel panel-primary">
    <div class="panel-heading">查询老师</div>
    <div class="panel-body">

        <form class="form-horizontal" role="form" action="" method="POST">

            <!--表单开始-->
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">老师姓名</label>
                <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
                    <select class="form-control" name="teacher">
                        <option value="">所有老师</option>
                        {loop $teachers $key $te}
                        {if $te['teacher_id']==$teacherId}
                        <option value="{$te[teacher_id]}" selected="selected">{$te['teacher_name']}</option>
                        {else}
                        <option value="{$te[teacher_id]}" >{$te['teacher_name']}</option>
                        {/if}
                        {/loop}
                    </select>
                </div>
            </div>
            <!--表单结束-->

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <input class="btn btn-default" type="submit" name="submit" value="搜 索">
                </div>
            </div>

        </form>
    </div>
</div>
<!--搜索结束-->

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">报名列表</a></li>
    <!--
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
    <li role="presentation"><a href="#messages" aria-controls="messages" role="tab" data-toggle="tab">Messages</a></li>
    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
    -->
</ul>
<!-- Tab panes -->
<div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home">

        <!--循环开始-->
        <div class="panel panel-default">
            <div class="panel-heading">报名列表</div>
            <div class="panel-body">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th>UID</th>
                        <th>头像/昵称</th>
                        <th>学生姓名</th>
                        <th>学生电话</th>
                        <th>填报内容</th>
                        <th>所报老师</th>
                        <th>报名时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $appoint $key $appoint}
                    {template 'appoint/appoint_item'}
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
        <!--循环结束-->
        {$pagination}
    </div>
</div>

{template 'common/footer'}